/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2021-01-28
 * Time: 9:06
 */
#include "ConcurrentTest.h"

void ConcurrentTest::Reduce(QString &result, const QStringList &_list)
{
    for (const auto &list : _list) {
        qDebug() << list;
    }
}

const QStringList ConcurrentTest::MapFun(Student *_stu)
{
    QStringList ret;
    for (int i = 0; i < 10; ++i) {
        ret << QString::number(i) << ":" << _stu->s_name_ + _stu->s_id_ + _stu->s_age_;
    }
    return ret;
}

void ConcurrentTest::SetStuList(StudentList _list)
{
    student_list_ = _list;
}
